package lion.framework.core.json.handler;

import java.io.File;
import java.io.IOException;
import java.io.Writer;

import lion.framework.core.json.anno.JsonHandler;
import lion.json.IJsonHandler;

@JsonHandler(File.class)
public class FileHandler implements IJsonHandler {

	@Override
	public void handle(Object obj, Writer writer) throws IOException {

		writer.write("\"" + ((File) obj).getPath() + "\"");
	}
}
